(function($){
var myflow = $.myflow;

$.extend(true,myflow.config.rect,{
	attr : {
	r : 8,
	fill : '#F6F7FF',
	stroke : '#03689A',
	"stroke-width" : 2
}
});

$.extend(true,myflow.config.props.props,{
	name : {name:'name', label:'名称', value:'新建流程'},
	key : {name:'key', label:'标识', value:''},
	index : {name:'index', label:'指标', value:''}
});


$.extend(true,myflow.config.tools.states,{
		start : {
			showType: 'image',
			type : 'start',
			name : {text:'<<start>>'},
			text : {text:'开始'},
			img : {src : 'flow/img/48/start_event_empty.png',width : 48, height:48},
			attr : {width:50 ,heigth:50 },
			props : {
				text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'开始'},
				key : {name:'key', label:'标识', value:''},
				code : {name:'code', label:'编码', value:''}
			}},
		end : {showType: 'image',type : 'end',
			name : {text:'<<end>>'},
			text : {text:'结束'},
			img : {src : 'flow/img/48/end_event_terminate.png',width : 48, height:48},
			attr : {width:50 ,heigth:50 },
			props : {
				text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'结束'},
				key : {name:'key', label:'标识', value:''},
				code : {name:'code', label:'编码', value:''}
			}},
		manual : {showType: 'text',type : 'manual',
			name : {text:'<<manual>>'},
			text : {text:'人工'},
			img : {src : 'flow/img/48/task_empty.png',width : 48, height:48},
			props : {
				text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'人工'},
				key : {name:'key', label:'标识', value:''},
				code : {name:'code', label:'编码', value:''}
			}},				
		audit : {showType: 'text',type : 'audit',
			name : {text:'<<audit>>'},
			text : {text:'审核'},
			img : {src : 'flow/img/48/task_empty.png',width :48, height:48},
			props : {
				text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'审核'},
				key : {name:'key', label:'标识', value:''},
				code : {name:'code', label:'编码', value:''}
			}},				
		invoke : {showType: 'image',type : 'invoke',
			name : {text:'<<invoke>>'},
			text : {text:'调用'},
			img : {src : 'flow/img/48/end_event_cancel.png',width : 48, height:48},
			attr : {width:50 ,heigth:50 },
			props : {
				text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'调用'},
				key : {name:'key', label:'标识', value:''},
				code : {name:'code', label:'编码', value:''}
			}},
		watch : {showType: 'image',type : 'watch',
			name : {text:'<<watch>>'},
			text : {text:'等待'},
			img : {src : 'flow/img/48/end_event_error.png',width : 48, height:48},
			attr : {width:50 ,heigth:50 },
			props : {
				text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'等待'},
				key : {name:'key', label:'标识', value:''},
				code : {name:'code', label:'编码', value:''}
			}},
		fork : {showType: 'image',type : 'fork',
			name : {text:'<<fork>>'},
			text : {text:'分支'},
			img : {src : 'flow/img/48/gateway_parallel.png',width :48, height:48},
			attr : {width:50 ,heigth:50 },
			props : {
				text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'分支'},
				key : {name:'key', label:'标识', value:''},
				code : {name:'code', label:'编码', value:''}
			}},
		join : {showType: 'image',type : 'join',
			name : {text:'<<join>>'},
			text : {text:'合并'},
			img : {src : 'flow/img/48/gateway_parallel.png',width :48, height:48},
			attr : {width:50 ,heigth:50 },
			props : {
				text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'合并'},
				key : {name:'key', label:'标识', value:''},
				code : {name:'code', label:'编码', value:''}
			}}
	});
})(jQuery);